<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>{$appname} | 支付接口</title>
    <meta name="description" content="夺宝支持信息显示界面"/>
    <meta name="keywords" content="夺宝"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="/css/style.css"/>
    <script type="text/javascript" src="/js/layermobile/layer.js"></script>
    <script type="text/javascript" src="/js/jweixin-1.0.0.js"></script>
    <script type="text/javascript" src="/js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="/js/pingpp.js"></script>
    <link href="/js/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="/js/bootstrap/js/bootstrap.min.js"></script>

</head>
<body>
<div class="container-fluid">
    <div class="row">
        <nav class="navbar navbar-default">
            <div class="container-fluid">
                <div class="navbar-header">
                    <a class="navbar-brand" id="back" href="javascript:void(0);">
                        <span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span>
                    </a>
                </div>
            </div>
        </nav>
    </div>
</div>

<div class="wrapper">

    <div class="innner order_div" style="padding-top: 0px;">

        <div class="order" style="min-height: calc(100vh - 244px);">
            <div class="order_detail">
                <div class="order_title">
                    <span><i class="icon icon_bag"></i>订单</span>
                </div>
                <table>

                    <tr class="p_one_row">
                        <td>订单号</td>
                        <td id="order">{$order}</td>
                    </tr>
                    <tr class="p_one_row">
                        <td>总金额</td>
                        <td>￥{$money}</td>
                    </tr>
                </table>
                <input type="hidden" value="{$token}" id="token">
                <input type="hidden" value="{$payurl}" id="payurl">
                <input type="hidden" value="{$front}" id="front">
            </div>
        </div>
        <p>提示：微信支付暂时无法提供使用</p>
        <div class="foot_div">
        <button id="alipay_wap" class="foot_btn">支付宝 ￥{$money}</button>
        <div class="footnote" style="height: 110px; line-height: 94px;"></div>
    </div>

    </div>


</div>

<script type="text/javascript">
    $("#pay").attr({ disabled: false });
    var payurl = $('#payurl').val();
    var fronturl = $("#front").val();
    $(function () {

        $('#back').bind('click', function () {
            window.location.href = fronturl+"/?c=user&res=clear";
        });

       $("#alipay_wap").bind('click', function () {
           var order = $('#order').text();
           var token = $('#token').val();
            window.location.href = payurl+'/Pay/pay_tips?token='+token+"&order="+order+'&chanal=alipay_wap';
       });
    });


    function writeObj(obj) {
        var description = "";
        for (var i in obj) {
            var property = obj[i];
            description += i + " = " + property + "\n";
        }
        alert(description);
    }

</script>

</body>
</html>